// <copyright file="TimeAxis.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;

namespace YUIAspNet
{
    /// <summary>
    /// Represents a time axis.
    /// </summary>
    public class TimeAxis : ChartAxis
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="TimeAxis"/> class.
        /// </summary>
        public TimeAxis() : base("time") 
        {
            SnapToUnits = true;
        }

        /// <summary>
        /// Gets or sets the minimum time.
        /// </summary>
        /// <value>The minimum.</value>
        public DateTime Minimum { get; set; }

        /// <summary>
        /// Gets or sets the maximum time.
        /// </summary>
        /// <value>The maximum.</value>
        public DateTime Maximum { get; set; }

        /// <summary>
        /// Gets or sets the major unit.
        /// </summary>
        /// <value>The major unit.</value>
        public int MajorUnit { get; set; }

        /// <summary>
        /// Gets or sets the major time unit.
        /// </summary>
        /// <value>The major time unit.</value>
        public string MajorTimeUnit { get; set; }

        /// <summary>
        /// Gets or sets the minor unit.
        /// </summary>
        /// <value>The minor unit.</value>
        public int MinorUnit { get; set; }

        /// <summary>
        /// Gets or sets the minor time unit.
        /// </summary>
        /// <value>The minor time unit.</value>
        public string MinorTimeUnit { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether to snap to units.
        /// </summary>
        /// <value><c>true</c> to snap to units; otherwise, <c>false</c>.</value>
        public bool SnapToUnits { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether stacking is enabled.
        /// </summary>
        /// <value><c>true</c> whether stacking is enabled; otherwise, <c>false</c>.</value>
        public bool StackingEnabled { get; set; }
    }
}
